.class public Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;
.super Ljava/lang/Object;
.source "DownloadInfo.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo$Reader;
    }
.end annotation


# static fields
.field public static final EXTRA_IS_WIFI_REQUIRED:Ljava/lang/String; = "isWifiRequired"

.field public static final NETWORK_CANNOT_USE_ROAMING:I = 0x5

.field public static final NETWORK_NO_CONNECTION:I = 0x2

.field public static final NETWORK_OK:I = 0x1

.field public static final NETWORK_RECOMMENDED_UNUSABLE_DUE_TO_SIZE:I = 0x4

.field public static final NETWORK_TYPE_DISALLOWED_BY_REQUESTOR:I = 0x6

.field public static final NETWORK_UNUSABLE_DUE_TO_SIZE:I = 0x3


# instance fields
.field public apkPackageName:Ljava/lang/String;

.field public mAllowRoaming:Z

.field public mAllowedNetworkTypes:I

.field public mBypassRecommendedSizeLimit:I

.field public mClass:Ljava/lang/String;

.field private mContext:Landroid/content/Context;

.field public mControl:I

.field public mCookies:Ljava/lang/String;

.field public mCurrentBytes:J

.field public mDeleted:Z

.field public mDescription:Ljava/lang/String;

.field public mDestination:I

.field public mDownloadUrl:Ljava/lang/String;

.field public mETag:Ljava/lang/String;

.field public mExtras:Ljava/lang/String;

.field public mFileName:Ljava/lang/String;

.field public mFuzz:I

.field public mHint:Ljava/lang/String;

.field public mId:J

.field public mIsNeedPostData:Ljava/lang/String;

.field public mIsPublicApi:Z

.field public mLastMod:J

.field public mMimeType:Ljava/lang/String;

.field public mNoIntegrity:Z

.field public mNumFailed:I

.field public mOtherKey:Ljava/lang/String;

.field public mPackage:Ljava/lang/String;

.field public mPrimaryKey:Ljava/lang/String;

.field public mReferer:Ljava/lang/String;

.field private mRequestHeaders:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/util/Pair",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;>;"
        }
    .end annotation
.end field

.field public mRetryAfter:I

.field public mStatus:I

.field private mSystemFacade:Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;

.field public mTitle:Ljava/lang/String;

.field public mTotalBytes:J

.field public mUri:Ljava/lang/String;

.field public mUserAgent:Ljava/lang/String;

.field public mVisibility:I


# direct methods
.method private constructor <init>(Landroid/content/Context;Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;)V
    .registers 5
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "systemFacade"    # Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;

    .prologue
    .line 230
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 226
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mRequestHeaders:Ljava/util/List;

    .line 231
    iput-object p1, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mContext:Landroid/content/Context;

    .line 232
    iput-object p2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mSystemFacade:Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;

    .line 233
    sget-object v0, Lcom/zuimeia/sdk/download/providers/downloads/Helpers;->sRandom:Ljava/util/Random;

    const/16 v1, 0x3e9

    invoke-virtual {v0, v1}, Ljava/util/Random;->nextInt(I)I

    move-result v0

    iput v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mFuzz:I

    .line 234
    return-void
.end method

.method synthetic constructor <init>(Landroid/content/Context;Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo$1;)V
    .registers 4
    .param p1, "x0"    # Landroid/content/Context;
    .param p2, "x1"    # Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;
    .param p3, "x2"    # Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo$1;

    .prologue
    .line 42
    invoke-direct {p0, p1, p2}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;-><init>(Landroid/content/Context;Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;)V

    return-void
.end method

.method static synthetic access$100(Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;)Ljava/util/List;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;

    .prologue
    .line 42
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mRequestHeaders:Ljava/util/List;

    return-object v0
.end method

.method private checkIsNetworkTypeAllowed(I)I
    .registers 6
    .param p1, "networkType"    # I

    .prologue
    .line 388
    iget-boolean v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mIsPublicApi:Z

    if-eqz v2, :cond_19

    .line 389
    invoke-direct {p0, p1}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->translateNetworkTypeToApiFlag(I)I

    move-result v1

    .line 391
    .local v1, "flag":I
    iget v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mAllowedNetworkTypes:I

    const/4 v3, -0x1

    if-ne v2, v3, :cond_17

    const/4 v0, 0x1

    .line 392
    .local v0, "allowAllNetworkTypes":Z
    :goto_e
    if-nez v0, :cond_19

    iget v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mAllowedNetworkTypes:I

    and-int/2addr v2, v1

    if-nez v2, :cond_19

    .line 393
    const/4 v2, 0x6

    .line 401
    .end local v0    # "allowAllNetworkTypes":Z
    .end local v1    # "flag":I
    :goto_16
    return v2

    .line 391
    .restart local v1    # "flag":I
    :cond_17
    const/4 v0, 0x0

    goto :goto_e

    .line 401
    .end local v1    # "flag":I
    :cond_19
    invoke-direct {p0, p1}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->checkSizeAllowedForNetwork(I)I

    move-result v2

    goto :goto_16
.end method

.method private checkSizeAllowedForNetwork(I)I
    .registers 10
    .param p1, "networkType"    # I

    .prologue
    const/4 v2, 0x1

    .line 428
    iget-wide v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mTotalBytes:J

    const-wide/16 v6, 0x0

    cmp-long v3, v4, v6

    if-gtz v3, :cond_a

    .line 444
    :cond_9
    :goto_9
    return v2

    .line 431
    :cond_a
    if-eq p1, v2, :cond_9

    .line 434
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mSystemFacade:Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;

    invoke-interface {v3}, Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;->getMaxBytesOverMobile()Ljava/lang/Long;

    move-result-object v0

    .line 435
    .local v0, "maxBytesOverMobile":Ljava/lang/Long;
    if-eqz v0, :cond_20

    iget-wide v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mTotalBytes:J

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    cmp-long v3, v4, v6

    if-lez v3, :cond_20

    .line 436
    const/4 v2, 0x3

    goto :goto_9

    .line 438
    :cond_20
    iget v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mBypassRecommendedSizeLimit:I

    if-nez v3, :cond_9

    .line 439
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mSystemFacade:Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;

    invoke-interface {v3}, Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;->getRecommendedMaxBytesOverMobile()Ljava/lang/Long;

    move-result-object v1

    .line 440
    .local v1, "recommendedMaxBytesOverMobile":Ljava/lang/Long;
    if-eqz v1, :cond_9

    iget-wide v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mTotalBytes:J

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    cmp-long v3, v4, v6

    if-lez v3, :cond_9

    .line 441
    const/4 v2, 0x4

    goto :goto_9
.end method

.method private isReadyToStart(J)Z
    .registers 10
    .param p1, "now"    # J

    .prologue
    const/4 v0, 0x1

    const/4 v1, 0x0

    .line 287
    invoke-static {}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadHandler;->getInstance()Lcom/zuimeia/sdk/download/providers/downloads/DownloadHandler;

    move-result-object v2

    iget-wide v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mId:J

    invoke-virtual {v2, v4, v5}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadHandler;->hasDownloadInQueue(J)Z

    move-result v2

    if-eqz v2, :cond_f

    .line 313
    :cond_e
    :goto_e
    return v1

    .line 291
    :cond_f
    iget v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mControl:I

    if-eq v2, v0, :cond_e

    .line 295
    iget v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mStatus:I

    sparse-switch v2, :sswitch_data_32

    goto :goto_e

    :sswitch_19
    move v1, v0

    .line 303
    goto :goto_e

    .line 307
    :sswitch_1b
    invoke-virtual {p0}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->checkCanUseNetwork()I

    move-result v2

    if-ne v2, v0, :cond_23

    :goto_21
    move v1, v0

    goto :goto_e

    :cond_23
    move v0, v1

    goto :goto_21

    .line 311
    :sswitch_25
    invoke-virtual {p0, p1, p2}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->restartTime(J)J

    move-result-wide v2

    cmp-long v2, v2, p1

    if-gtz v2, :cond_2f

    :goto_2d
    move v1, v0

    goto :goto_e

    :cond_2f
    move v0, v1

    goto :goto_2d

    .line 295
    nop

    :sswitch_data_32
    .sparse-switch
        0x0 -> :sswitch_19
        0xbe -> :sswitch_19
        0xc0 -> :sswitch_19
        0xc2 -> :sswitch_25
        0xc3 -> :sswitch_1b
        0xc4 -> :sswitch_1b
    .end sparse-switch
.end method

.method private isRoamingAllowed()Z
    .registers 2

    .prologue
    .line 347
    iget-boolean v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mIsPublicApi:Z

    if-eqz v0, :cond_7

    .line 348
    iget-boolean v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mAllowRoaming:Z

    .line 350
    :goto_6
    return v0

    :cond_7
    const/4 v0, 0x1

    goto :goto_6
.end method

.method private translateNetworkTypeToApiFlag(I)I
    .registers 3
    .param p1, "networkType"    # I

    .prologue
    .line 409
    packed-switch p1, :pswitch_data_a

    .line 417
    const/4 v0, 0x0

    :goto_4
    return v0

    .line 411
    :pswitch_5
    const/4 v0, 0x1

    goto :goto_4

    .line 414
    :pswitch_7
    const/4 v0, 0x2

    goto :goto_4

    .line 409
    nop

    :pswitch_data_a
    .packed-switch 0x0
        :pswitch_5
        :pswitch_7
    .end packed-switch
.end method


# virtual methods
.method public checkCanUseNetwork()I
    .registers 3

    .prologue
    .line 336
    iget-object v1, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mSystemFacade:Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;

    invoke-interface {v1}, Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;->getActiveNetworkType()Ljava/lang/Integer;

    move-result-object v0

    .line 337
    .local v0, "networkType":Ljava/lang/Integer;
    if-nez v0, :cond_a

    .line 338
    const/4 v1, 0x2

    .line 343
    :goto_9
    return v1

    .line 340
    :cond_a
    invoke-direct {p0}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->isRoamingAllowed()Z

    move-result v1

    if-nez v1, :cond_1a

    iget-object v1, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mSystemFacade:Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;

    invoke-interface {v1}, Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;->isNetworkRoaming()Z

    move-result v1

    if-eqz v1, :cond_1a

    .line 341
    const/4 v1, 0x5

    goto :goto_9

    .line 343
    :cond_1a
    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-direct {p0, v1}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->checkIsNetworkTypeAllowed(I)I

    move-result v1

    goto :goto_9
.end method

.method public getAllDownloadsUri()Landroid/net/Uri;
    .registers 5

    .prologue
    .line 474
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuimeia/sdk/download/providers/downloads/Downloads;->getAllDownloadsContentURI(Landroid/content/Context;)Landroid/net/Uri;

    move-result-object v0

    iget-wide v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mId:J

    invoke-static {v0, v2, v3}, Landroid/content/ContentUris;->withAppendedId(Landroid/net/Uri;J)Landroid/net/Uri;

    move-result-object v0

    return-object v0
.end method

.method public getHeaders()Ljava/util/Collection;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Collection",
            "<",
            "Landroid/util/Pair",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;>;"
        }
    .end annotation

    .prologue
    .line 237
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mRequestHeaders:Ljava/util/List;

    invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method public getLogMessageForNetworkError(I)Ljava/lang/String;
    .registers 3
    .param p1, "networkError"    # I

    .prologue
    .line 359
    packed-switch p1, :pswitch_data_16

    .line 376
    const-string v0, "unknown error with network connectivity"

    :goto_5
    return-object v0

    .line 361
    :pswitch_6
    const-string v0, "download size exceeds recommended limit for mobile network"

    goto :goto_5

    .line 364
    :pswitch_9
    const-string v0, "download size exceeds limit for mobile network"

    goto :goto_5

    .line 367
    :pswitch_c
    const-string v0, "no network connection available"

    goto :goto_5

    .line 370
    :pswitch_f
    const-string v0, "download cannot use the current network connection because it is roaming"

    goto :goto_5

    .line 373
    :pswitch_12
    const-string v0, "download was requested to not use the current network type"

    goto :goto_5

    .line 359
    nop

    :pswitch_data_16
    .packed-switch 0x2
        :pswitch_c
        :pswitch_9
        :pswitch_6
        :pswitch_f
        :pswitch_12
    .end packed-switch
.end method

.method public getMyDownloadsUri()Landroid/net/Uri;
    .registers 5

    .prologue
    .line 470
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lcom/zuimeia/sdk/download/providers/downloads/Downloads;->getContentURI(Landroid/content/Context;)Landroid/net/Uri;

    move-result-object v0

    iget-wide v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mId:J

    invoke-static {v0, v2, v3}, Landroid/content/ContentUris;->withAppendedId(Landroid/net/Uri;J)Landroid/net/Uri;

    move-result-object v0

    return-object v0
.end method

.method public hasCompletionNotification()Z
    .registers 4

    .prologue
    const/4 v1, 0x1

    const/4 v0, 0x0

    .line 321
    iget v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mStatus:I

    invoke-static {v2}, Lcom/zuimeia/sdk/download/providers/downloads/Downloads;->isStatusCompleted(I)Z

    move-result v2

    if-nez v2, :cond_b

    .line 327
    :cond_a
    :goto_a
    return v0

    .line 324
    :cond_b
    iget v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mVisibility:I

    if-ne v2, v1, :cond_a

    move v0, v1

    .line 325
    goto :goto_a
.end method

.method public logVerboseInfo()V
    .registers 5

    .prologue
    .line 478
    const-string v0, "DownloadManager"

    const-string v1, "Service adding new entry"

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 479
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "ID      : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-wide v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mId:J

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 480
    const-string v1, "DownloadManager"

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "URI     : "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mUri:Ljava/lang/String;

    if-eqz v0, :cond_250

    const-string v0, "yes"

    :goto_34
    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 481
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "NO_INTEG: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-boolean v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mNoIntegrity:Z

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 482
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "HINT    : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mHint:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 483
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "FILENAME: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mFileName:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 484
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "MIMETYPE: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mMimeType:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 485
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "DESTINAT: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mDestination:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 486
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "VISIBILI: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mVisibility:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 487
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "CONTROL : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mControl:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 488
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "STATUS  : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mStatus:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 489
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "FAILED_C: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mNumFailed:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 490
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "RETRY_AF: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mRetryAfter:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 491
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "LAST_MOD: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-wide v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mLastMod:J

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 492
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "PACKAGE : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mPackage:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 493
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "CLASS   : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mClass:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 494
    const-string v1, "DownloadManager"

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "COOKIES : "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mCookies:Ljava/lang/String;

    if-eqz v0, :cond_254

    const-string v0, "yes"

    :goto_1a4
    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 495
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "AGENT   : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mUserAgent:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 496
    const-string v1, "DownloadManager"

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "REFERER : "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mReferer:Ljava/lang/String;

    if-eqz v0, :cond_258

    const-string v0, "yes"

    :goto_1dc
    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 497
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "TOTAL   : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-wide v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mTotalBytes:J

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 498
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "CURRENT : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-wide v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mCurrentBytes:J

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 499
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "ETAG    : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mETag:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 500
    const-string v0, "DownloadManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "DELETED : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-boolean v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mDeleted:Z

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 501
    return-void

    .line 480
    :cond_250
    const-string v0, "no"

    goto/16 :goto_34

    .line 494
    :cond_254
    const-string v0, "no"

    goto/16 :goto_1a4

    .line 496
    :cond_258
    const-string v0, "no"

    goto :goto_1dc
.end method

.method nextAction(J)J
    .registers 10
    .param p1, "now"    # J

    .prologue
    const-wide/16 v2, 0x0

    .line 511
    iget v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mStatus:I

    invoke-static {v4}, Lcom/zuimeia/sdk/download/providers/downloads/Downloads;->isStatusCompleted(I)Z

    move-result v4

    if-eqz v4, :cond_d

    .line 512
    const-wide/16 v2, -0x1

    .line 521
    :cond_c
    :goto_c
    return-wide v2

    .line 514
    :cond_d
    iget v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mStatus:I

    const/16 v5, 0xc2

    if-ne v4, v5, :cond_c

    .line 517
    invoke-virtual {p0, p1, p2}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->restartTime(J)J

    move-result-wide v0

    .line 518
    .local v0, "when":J
    cmp-long v4, v0, p1

    if-lez v4, :cond_c

    .line 521
    sub-long v2, v0, p1

    goto :goto_c
.end method

.method notifyPauseDueToSize(Z)V
    .registers 5
    .param p1, "isWifiRequired"    # Z

    .prologue
    .line 525
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 526
    .local v0, "intent":Landroid/content/Intent;
    invoke-virtual {p0}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->getAllDownloadsUri()Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 527
    iget-object v1, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mContext:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v1

    const-class v2, Lcom/zuimeia/sdk/download/providers/downloads/SizeLimitActivity;

    invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 528
    const/high16 v1, 0x10000000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 529
    const/high16 v1, 0x20000000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 530
    const/high16 v1, 0x10000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 531
    const-string v1, "isWifiRequired"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 532
    iget-object v1, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mContext:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 533
    return-void
.end method

.method public restartTime(J)J
    .registers 8
    .param p1, "now"    # J

    .prologue
    .line 273
    iget v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mNumFailed:I

    if-nez v0, :cond_5

    .line 279
    .end local p1    # "now":J
    :goto_4
    return-wide p1

    .line 276
    .restart local p1    # "now":J
    :cond_5
    iget v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mRetryAfter:I

    if-lez v0, :cond_11

    .line 277
    iget-wide v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mLastMod:J

    iget v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mRetryAfter:I

    int-to-long v2, v2

    add-long p1, v0, v2

    goto :goto_4

    .line 279
    :cond_11
    iget-wide v0, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mLastMod:J

    iget v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mFuzz:I

    add-int/lit16 v2, v2, 0x3e8

    mul-int/lit8 v2, v2, 0x1e

    const/4 v3, 0x1

    iget v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mNumFailed:I

    add-int/lit8 v4, v4, -0x1

    shl-int/2addr v3, v4

    mul-int/2addr v2, v3

    int-to-long v2, v2

    add-long p1, v0, v2

    goto :goto_4
.end method

.method public sendIntentIfRequested()V
    .registers 6

    .prologue
    .line 241
    iget-object v1, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mPackage:Ljava/lang/String;

    if-nez v1, :cond_5

    .line 267
    :cond_4
    :goto_4
    return-void

    .line 244
    :cond_5
    const-string v1, "sendIntentIfRequested >> mIsPublicApi:%s == mPackage:%s == mClass:%s"

    const/4 v2, 0x3

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    iget-boolean v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mIsPublicApi:Z

    invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x1

    iget-object v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mPackage:Ljava/lang/String;

    aput-object v4, v2, v3

    const/4 v3, 0x2

    iget-object v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mClass:Ljava/lang/String;

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Lcom/zuimeia/sdk/download/utils/LogTimber;->d(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 246
    iget-boolean v1, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mIsPublicApi:Z

    if-eqz v1, :cond_3d

    .line 247
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.DOWNLOAD_COMPLETE"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 248
    .local v0, "intent":Landroid/content/Intent;
    iget-object v1, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mPackage:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 249
    const-string v1, "extra_download_id"

    iget-wide v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mId:J

    invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;

    .line 266
    :goto_37
    iget-object v1, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mSystemFacade:Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;

    invoke-interface {v1, v0}, Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;->sendBroadcast(Landroid/content/Intent;)V

    goto :goto_4

    .line 251
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_3d
    iget-object v1, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mClass:Ljava/lang/String;

    if-eqz v1, :cond_4

    .line 254
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.DOWNLOAD_COMPLETED"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 255
    .restart local v0    # "intent":Landroid/content/Intent;
    iget-object v1, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mPackage:Ljava/lang/String;

    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mClass:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 256
    iget-object v1, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mExtras:Ljava/lang/String;

    if-eqz v1, :cond_5a

    .line 257
    const-string v1, "notificationextras"

    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mExtras:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 264
    :cond_5a
    invoke-virtual {p0}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->getMyDownloadsUri()Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    goto :goto_37
.end method

.method public startDownloadThread()V
    .registers 6

    .prologue
    const/4 v4, 0x0

    const/16 v3, 0xc0

    .line 536
    iget v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mStatus:I

    if-eq v2, v3, :cond_26

    .line 537
    iput v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mStatus:I

    .line 538
    new-instance v1, Landroid/content/ContentValues;

    invoke-direct {v1}, Landroid/content/ContentValues;-><init>()V

    .line 539
    .local v1, "values":Landroid/content/ContentValues;
    const-string v2, "status"

    iget v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mStatus:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 540
    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mContext:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v2

    invoke-virtual {p0}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->getAllDownloadsUri()Landroid/net/Uri;

    move-result-object v3

    invoke-virtual {v2, v3, v1, v4, v4}, Landroid/content/ContentResolver;->update(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 542
    .end local v1    # "values":Landroid/content/ContentValues;
    :cond_26
    new-instance v0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadThread;

    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mContext:Landroid/content/Context;

    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mSystemFacade:Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;

    invoke-direct {v0, v2, v3, p0}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadThread;-><init>(Landroid/content/Context;Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;)V

    .line 543
    .local v0, "downloader":Lcom/zuimeia/sdk/download/providers/downloads/DownloadThread;
    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->mSystemFacade:Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;

    invoke-interface {v2, v0}, Lcom/zuimeia/sdk/download/providers/downloads/SystemFacade;->startThread(Ljava/lang/Thread;)V

    .line 544
    return-void
.end method

.method startIfReady(J)V
    .registers 4
    .param p1, "now"    # J

    .prologue
    .line 448
    invoke-direct {p0, p1, p2}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;->isReadyToStart(J)Z

    move-result v0

    if-nez v0, :cond_7

    .line 467
    :goto_6
    return-void

    .line 466
    :cond_7
    invoke-static {}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadHandler;->getInstance()Lcom/zuimeia/sdk/download/providers/downloads/DownloadHandler;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/zuimeia/sdk/download/providers/downloads/DownloadHandler;->enqueueDownload(Lcom/zuimeia/sdk/download/providers/downloads/DownloadInfo;)V

    goto :goto_6
.end method
